def solve(s):
    s.strip()
    s_list = s.split()
    return len(s_list[-1])


if __name__ == "__main__":
    s = "Hello World"
    print(solve(s))
